package net.anumbrella.seaweedfs.core.file;

import lombok.Data;

import java.io.Serializable;

/**
 * @author Administrator
 */
@Data
public class FileHandleStatus implements Serializable{

    private String fileId;
    private long lastModified;
    private String fileName;
    private String contentType;
    private long size;
    private String fileUrl;


    public FileHandleStatus(String fileId, long lastModified, String fileName, String contentType, long size) {
        this.fileId = fileId;
        this.lastModified = lastModified;
        this.fileName = fileName;
        this.contentType = contentType;
        this.size = size;
    }

    public FileHandleStatus(String fileId, long size) {
        this.fileId = fileId;
        this.size = size;
    }

    public FileHandleStatus(long size) {
        this.size = size;
    }

    public FileHandleStatus(String fileId, long size,String publicUrl) {
        this.fileId = fileId;
        this.size = size;
        this.fileUrl = publicUrl+"/"+fileId;
    }
}
